package CodeDuiXiang;

import java.util.Arrays;

public class Code096 {
	String[] name = {"Tom","Jack","Merry","Smith","Sunny"};
	
	public void show(){
		System.out.println("****排序前****");
		for (int i = 0; i < name.length; i++) {
			System.out.print(name[i]+" ");
		}
	}
	
	public void pai(){
		System.out.println("\n****排序后****");
		Arrays.sort(name);
		for (int i = 0; i < name.length; i++) {
			System.out.print(name[i]+" ");
		}
	}
	
}
